package cn.wolfcode.transfer.util;

public enum LevelUtil {
    紧急("紧急",0),
    重要("重要",1),
    普通("普通",2),
    ;
    private String name;
    private Integer value;

    LevelUtil(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }
    public static String forLevelValue(Integer getvalue){
        LevelUtil[] values = LevelUtil.values();
        for (LevelUtil value:values){
            if (value.value==getvalue){
                return value.name;
            }
        }
        return null;
    }
}

